/**
 * Created by qiang.qian on 2016/11/21.
 */

$(function () {
    var captchaId = "";

    $('.modal').on('show.bs.modal', reposition);

    $(window).on('resize', function () {
        $('.modal:visible').each(reposition);
    });

    //limitMessageCodeInput();
    initList();

    function initList() {
      url = 'teams/'
      $.ajax({
          type: "GET",
          url: "/cm/" + url,
          dataType: "json",
          contentType: "application/json",
          data: JSON.stringify(params),
          beforeSend: function (xhr) {
              xhr.setRequestHeader(header, token);
          },

          success: function (resp) {
              console.log(resp);
              if (resp.result == 0) {
                  callback(resp, callbackArgs);
              } else {
                  if (resp.message && resp.message != '') {
                      error(resp.message);
                  } else {
                      error("数据保存失败，请重试！");
                  }
              }
          }
      });
    }

});
